import _ from "lodash";

export default class {
  state = {};
  getter = {};
  action = {};
  constructor() {}

  set(key: string, value: any) {
    _.set(this.state, key, value);
  }

  remove(key: string) {
    delete this.state[key];
  }

  get(key: string) {
    return _.get(this.state, key);
  }

  reset() {
    this.state = {};
  }
}
